package com.junzhiit.nengji.api.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.junzhiit.nengji.api.service.AreaService;
import com.junzhiit.nengji.api.web.vo.ResultVO;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("area")
public class AreaController extends BaseController {
	
	@Autowired
	private AreaService areaService;
	
	@ApiOperation(value = "获取所有区域信息")
	@RequestMapping(method=RequestMethod.GET)
	public ResultVO findAll(){
		return areaService.findAll();
	}
	
}
